loop menustrip buttons

45

loop menustrip buttons -

foreach (ToolStripMenuItem item in menuStrip1.Items)
            {
                item.ForeColor = Color.Red;
                item.BackColor = Color.Blue;
                foreach (ToolStripMenuItem children in item.DropDownItems)
                {
                    children.ForeColor = Color.Red;
                    children.BackColor = Color.Blue;
                }
            }

Comments

Submit
0 Comments